package com.mjk.manager.workflow.parser.sql.read;

import com.mjk.manager.workflow.parser.sql.vo.SQLParserVO;
import com.yomahub.liteflow.log.LFLog;
import com.yomahub.liteflow.log.LFLoggerManager;

/**
 * sql 读取抽象类，维护公共方法
 *
 * @author tangkc
 * @author houxinyu
 * @author Bryan.Zhang
 * @since 2.11.1
 */
public abstract class AbstractSqlRead implements com.mjk.manager.workflow.parser.sql.read.SqlRead {
    public final SQLParserVO config;
    private static final LFLog LOG = LFLoggerManager.getLogger(AbstractSqlRead.class);

    protected AbstractSqlRead(SQLParserVO config) {
        this.config = config;
    }
    /**
     * 是否可以读取
     * chain 默认可以读取
     * script 需要判断是否有配置
     *
     * @return 布尔值
     */
    public boolean needRead() {
        return true;
    }
}
